load c:\manoj\projects\ace\em.mat
load c:\manoj\projects\ace\pcn.mat
st = min(ace_all(:,1));
en = max(PN_fday);
L = PN_fday > st & PN_fday < en;
sel_PN_fday = PN_fday(L);
sel_PN = PN(L);
L = ace_all(:,1) > st & ace_all(:,1) < en;
sel_ace_all = ace_all(L,:);
sel_gsm_bz = ace_gsm_bz(L);
ne_PN = interp1(sel_PN_fday,sel_PN,sel_ace_all(:,1));
L = isnan(sel_ace_all(:,2))|isnan(ne_PN);
sel_ace_all(L,:) = [];
ne_PN(L) = [];
sel_gsm_bz(L)=[];
L = sel_gsm_bz >1;
corrcoef(sel_ace_all(L,2),ne_PN(L))
plot(sel_ace_all(L,2),ne_PN(L),'r.');